package com.my.json.domain;

import com.my.json.sensitive.annotation.SensitiveField;
import com.my.json.sensitive.enums.SensitiveType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true) // 开启链式编程
public class JsonTest implements Serializable {

    @SensitiveField(type = SensitiveType.CHINESE_NAME)
    private String id;
    private int intNum;
    private Integer integerNum;
    private double aDouble;
    private Double aDouble2;
    private List<String> strings;
    private Map<String,Object> map;
    private Date date;

}
